<%--
  Created by IntelliJ IDEA.
  User: user
  Date: 2025/3/14
  Time: 14:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--将数据存入缓存作用域中，jsp的四大缓存对象：pageContext、request、session、application--%>
<%
pageContext.setAttribute("page","page");
request.setAttribute("request","request");
session.setAttribute("session","session");
application.setAttribute("application","application");
%>
<%--从页面域中将值取出--%>
<%
Object context=pageContext.getAttribute("page");
out.print(context);
%>
<%--页面跳转的方式有两种：转发、重定向；课堂思考：总结转发与重定向的区别--%>
<%--转发--%>
<%--<%--%>
<%--request.getRequestDispatcher("jspinnerDemo.jsp").forward(request,response);--%>
<%--%>--%>
<%--重定向,转发和重定向只能出现一个，不能同时出现--%>
<%
response.sendRedirect("jspinnerDemo.jsp");
%>
</body>
</html>
